<include file="App/Home/View/Public/header.html"/>
<!--主体内容开始-->
<div id="account-main" role="main">
	<div class="container account-content">
		<div class="row">
			<include file="App/Home/View/Public/left.html"/>
			<!--右侧内容开始-->
			<div class="col-xs-9 account-right">
				<div class="my-assets">
					<div class="content-head">修改登录密码</div>
					<div class="account-safe-main account-safe-marg">
						<form action="" class="form-horizontal" id="signupForm" method="post"  jump-url="{:U('Login/index')}"   action="{:U('User/updatePassword')}">
							<input name="__RequestVerificationToken" type="hidden" value="">
							<div class="form-group form-item">
								<label class="col-xs-2 control-label label-title">原登录密码</label>
								<div class="col-xs-5 input-wrap">
									<input class="form-control col-xs-5 input-text" data-val="true" data-val-infomessage="请输入您的登录密码" data-val-required="您输入的密码有误，请重新输入" id="oldpwd" name="oldpwd" type="password">
								</div>
								<label class="col-xs-4 input-msg">
									<span class="field-validation-valid error" data-valmsg-for="OldLoginPassword" data-valmsg-replace="true"></span>
								</label>
							</div>
							<div class="form-group form-item">
								<label class="col-xs-2 control-label label-title">新登录密码</label>
								<div class="col-xs-5 input-wrap">
									<input class="form-control col-xs-5 input-text" data-val="true" data-val-infomessage="密码为6-20任意组合" data-val-length="密码为6-20任意组合" data-val-length-max="20" data-val-length-min="6" data-val-required="您输入的密码有误，请重新输入" id="pwd" name="pwd" type="password">
								</div>
								<label class="col-xs-4 input-msg">
									<span class="field-validation-valid error" data-valmsg-for="NewLoginPassword" data-valmsg-replace="true"></span>
								</label>
							</div>
							<div class="form-group form-item">
								<label class="col-xs-2 control-label label-title">确认</label>
								<div class="col-xs-5 input-wrap">
									<input class="form-control col-xs-5 input-text" data-val="true" data-val-equalto="两次输入不一致 , 请重新输入" data-val-equalto-other="*.NewLoginPassword" data-val-infomessage="请保持两次输入一致" data-val-required="两次输入不一致 , 请重新输入" id="repwd" name="repwd" type="password">
								</div>
								<label class="col-xs-4 input-msg">
									<span class="field-validation-valid error" data-valmsg-for="ConfirmLoginPassword" data-valmsg-replace="true"></span>
								</label>
							</div>
							<div class="form-group form-item">
								<div class="col-xs-5 btn-offset btn-chang">
									<button type="submit" class="btn btn-wrap">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<!--右侧内容结束-->
		</div>
	</div>
</div>
<script>
$("#signupForm").validate({
    rules: {
        oldpwd:{
			required: true,
            rangelength:[6,20]
        },
        pwd:{
			required: true,
            rangelength:[6,20]
        },
        repwd:{
            rangelength:[6,20],
            equalTo: "#pwd"
        }

    },
    messages: {
        oldpwd:{
		 	required: "密码不能为空",
            rangelength:"密码长度在6-20个字符之间"
        },
        pwd:{
		 	required: "密码不能为空",
            rangelength:"密码长度在6-20个字符之间"
        },
        repwd:{
            rangelength:"密码长度在6-20个字符之间",
            equalTo: "两次输入不一样"
        }
    },
    submitHandler:function(form){
        ajax_submit_form(form)
        return false;
    },
    invalidHandler: function() {  //不通过回调
        return false;
    }
});
</script>
<!--主题内容结束-->
<include file="App/Home/View/Public/footer.html"/>